package com.wyw.design.model.learning.behavioral.visitor;


/**
 * @Title   具体访问元素 —— 文件夹元素
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/4/19 17:15
 * Update History:
 * Author        Time            Content
 */
public class DictionaryElement implements Element {
    // 当前元素的访问权限
    private String lookPerms;
    // 文件夹名
    private String name;
    DictionaryElement(String name, String lookPerms) {
        this.name = name;
        this.lookPerms = lookPerms;
    }
    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }
    String getName() {
        return name;
    }
    String getLookPerms() {
        return lookPerms;
    }
}
